package com.laicunba.pojo.vo;

import java.math.BigDecimal;
import java.util.Date;

public class FinancialFlowVO implements Comparable<FinancialFlowVO> {
	private String id;
	private String subject;
	private BigDecimal amount;
	private String status;
	private Date date;
	private String payMark;

	public void setPayMark(String payMark) {
		this.payMark = payMark;
	}

	public String getPayMark() {
		return payMark;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public String getSubject() {
		return subject;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public String getStatus() {
		return status;
	}

	public Date getDate() {
		return date;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Override
	public int compareTo(FinancialFlowVO o) {
		if (this.date == null || o.getDate() == null) {
			return 0;
		}
		return this.date.getTime() > o.getDate().getTime() ? -1 : 1;
	}
}
